home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
language
/
asxsrc.arc
/
6809.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-08-25
|
2KB
|
137 lines
/* 6809.H */
/*
* (C) Copyright 1989
* All Rights Reserved
*
* Alan R. Baldwin
* 721 Berkeley St.
* Kent, Ohio 44240
*/
/*)BUILD
$(PROGRAM) = AS6809
$(INCLUDE) = {
ASM.H
6809.H
}
$(FILES) = {
M09EXT.C
M09MCH.C
M09ADR.C
M09PST.C
ASMAIN.C
ASLEX.C
ASSYM.C
ASSUBR.C
ASEXPR.C
ASDATA.C
ASLIST.C
ASOUT.C
}
$(STACK) = 2000
*/
/*
* Addressing types
*/
#define S_EXT 30
#define S_IMMED 31
#define S_IMB 32
#define S_IMW 33
#define S_IMER 34
#define S_DIR 35
#define S_IND 36
#define S_OFST 37
#define S_PC 38
#define S_PCR 39
/*
* 6809 Instruction types
*/
#define S_BRA 40
#define S_LBRA 41
#define S_LBSR 42
#define S_SOP 43
#define S_ACC 44
#define S_STR1 45
#define S_STR 46
#define S_LR2 47
#define S_LR1 48
#define S_LR 49
#define S_LEA 50
#define S_PULS 51
#define S_PULU 52
#define S_EXG 53
#define S_CC 54
#define S_INH2 55
#define S_INH1 56
#define S_INH 57
/*
* Other Information
*/
#define S_FLAG 60
/*
* 6800 Instruction types
*/
#define S_6800 70
/*
* Set Direct Pointer
*/
#define S_SDP 80
extern int index;
struct sdp
{
addr_t s_addr;
struct area * s_area;
};
struct adsym
{
char a_str[4]; /* addressing string */
int a_val; /* addressing mode value */
};
extern struct adsym abd[];
extern struct adsym xyus[];
extern struct adsym auto1[];
extern struct adsym auto2[];
extern struct adsym pc[];
extern struct adsym pcr[];
extern struct adsym regs[];
extern struct adsym stks[];
extern struct adsym stku[];
struct opdata
{
char opcode[4]; /* byte data */
};
extern struct opdata mc6800[];
/* machine dependent functions */
/* m09adr.c */
extern int addr();
extern int addr1();
extern int amode();
extern int any();
extern int srch();
/* m09mch.c */
extern VOID machin();
extern VOID genout();
extern VOID m68out();
extern VOID minit();
extern int setbit();
extern int getbit();
extern int comma();
extern struct sdp sdp[];